From 43cdce02c7527df9c5d4de27db92ce15b200d202 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 7 Apr 2005 05:44:41 +0000 Subject: [PATCH] Initialize the colormap to zero. (#171762, David Costanzo) 2005-04-07 Matthias Clasen * io-bmp.c (DecodeColormap): Initialize the colormap to zero. (#171762, David Costanzo) --- gdk-pixbuf/io-bmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdk-pixbuf/io-bmp.c b/gdk-pixbuf/io-bmp.c index 4cdcc112c3..c754431fcf 100644 --- a/gdk-pixbuf/io-bmp.c +++ b/gdk-pixbuf/io-bmp.c @@ -462,7 +462,7 @@ static gboolean DecodeColormap (guchar *buff, return TRUE; } - State->Colormap = g_malloc ((1 << State->Header.depth) * sizeof (*State->Colormap)); + State->Colormap = g_malloc0 ((1 << State->Header.depth) * sizeof (*State->Colormap)); for (i = 0; i < State->Header.n_colors; i++) { -- 2.30.2